﻿
namespace Cos.Module.CMS.NHibernate.Test
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class ArchiveElementDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapArchiveElementDataModel()
        {
            new PersistenceSpecification<ArchiveElementDataModel>(Session)
                .CheckProperty(x => x.ElementValue, "ex")
                .CheckProperty(x => x.ElementFile, "fx")
                .CheckProperty(x => x.PartName, "PartX")
                //.CheckReference(x => x.ArchivePageId, this.ArchivePage.Id)
                //.CheckReference(x => x.DataTypeId, this.DataType.Id)
                .VerifyTheMappings();
        }
    }
}
